package com.sparrow.manage.analyse;

import com.sparrow.manage.monitor.AccessMonitor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * 前端页面埋点Controller
 */
@RestController
@RequestMapping("/analyse/point")
public class BuriedPointController {

    @RequestMapping
    public String accessRecord(HttpServletRequest request){
        AccessMonitor.AccessMonitorHolder.INSTANCE.access(request.getRemoteAddr());
        return "success";
    }

}
